Skip to content
  • Qt Location. Set scroll area for offline map

    Unsolved QML and Qt Quick qt location map area
    4
    0 Votes
    4 Posts
    1k Views
    K
    Question is actual
  • 0 Votes
    3 Posts
    2k Views
    S
    I misunderstood meaning of flick gesture so I missed that it was a reported bug although I did a search(for mapgesture). https://bugreports.qt.io/browse/QTBUG-46388 It is fixed in 5.6 but not 5.5. However there is a simple workaround. You have to add a MouseArea to the Map element as shown below : Map { id : map plugin: myPlugin anchors.fill: parent focus: true zoomLevel: 9 gesture.activeGestures: MapGestureArea.PanGesture | MapGestureArea.FlickGesture | MapGestureArea.ZoomGesture gesture.flickDeceleration: 3000 gesture.enabled: true //XXXXXXX Added MouseArea { anchors.fill: parent } //XXXXXXX } Thanks to Alexander for pointing me this.
  • 0 Votes
    2 Posts
    792 Views
    ?
    I found the answer in the Qt 5.4 documentation: The Qt Location API provides mapping, navigation, and place search via QML and C++ interfaces. The API has not been released yet but due to its platform-independent nature is available on all Qt platforms. It will be introduced as tech-preview module in Qt 5.5.0, see: https://wiki.qt.io/New-Features-in-Qt-5.5